const gulp = require('gulp')
const sftp = require('gulp-sftp-up4')

const config = {
    host: '192.168.1.88',
    port: 22,
    user: 'root',
    remotePath: '/opt/docker-ct-data/nginx/html/ihs-device/',
    key: '~/.ssh/id_rsa',
}

const publish = function() {
    let src = '../dist/**/*'
    return gulp.src(src).pipe(
        sftp(config),
    )
}

exports.default = publish
